home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / basic / iqb9103.zip / LJDEMO.BAS < prev    next >
BASIC Source File  |  1991-02-22  |  1KB  |  46 lines

  1. ' LJDEMO.BAS--A program demonstrating PCL job control commands.
  2. ' Includes the file COPIES.BAS
  3.  
  4. CLS
  5. PRINT "This program prints from 1 to 99 copies of a page."
  6. PRINT
  7.  
  8. DO
  9.   INPUT "How many copies would you like to print:  ", copies%
  10. LOOP UNTIL (copies% > 0) AND (copies% < 100)
  11.  
  12. LPRINT CHR$(27); "E"    ' Reset printer
  13. LPRINT CHR$(27); "&l"; copies%; "X"    ' Set copies
  14.  
  15. LPRINT "You asked for"; copies%; "copies of this page"
  16.  
  17. LPRINT CHR$(27); "E"    ' Reset printer and eject pages
  18.  
  19. LPRINT CHR$(27); "E"    ' Reset printer
  20. LPRINT CHR$(27); "(8U"    ' Set symbol set
  21. LPRINT CHR$(27); "(s0p16.66h0s0b0T"    ' Set font characteristics
  22. LPRINT "Lineprinter is beautiful"    ' Print message
  23. LPRINT CHR$(27); "E"    ' Reset printer/eject page
  24.  
  25. LPRINT CHR$(27); "E"    ' Reset printer
  26. LPRINT CHR$(27); "(0U"    ' Set symbol set
  27. LPRINT CHR$(27); "(s1p14v0s3b4T"    ' Set font characteristics
  28. LPRINT "Fun with Helvetica"    ' Print message
  29. LPRINT "CHR$(27); "E"    ' Reset printer/eject page
  30.  
  31. size% = 4    ' Set initial height
  32.  
  33. LPRINT CHR$(27); "E"    ' Reset printer
  34. LPRINT CHR$(27); "(10U"    ' Set symbol set
  35. LPRINT CHR$(27); "(s1p"; size%; "v0s0b4101T"    ' Set font
  36.  
  37. FOR i% = 1 TO 15    ' Loop 15 times
  38.   LPRINT "CG Times"; size%; "point"    ' Print message
  39.   LPRINT
  40.   size% = size% + 2    ' Increment size%
  41.   LPRINT CHR$(27); "(s"; size%; "V"    ' Set new height
  42. NEXT i%
  43.  
  44. LPRINT CHR$(27); "E"    ' Reset printer
  45.  
  46.